/**
 * 
 */
package com.dsp.bean;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.AccessType;

import com.core.util.BaseBean;

/**
 * @author laker
 *
 */
@Entity
@Table(name = "jobs")
public class Jobs extends BaseBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@AccessType(value = "property")
	@Column(name = "id")
	private Long id;
	
	@AccessType(value = "property")
	@Column(name = "jobs_type")
	private String jobsType;

	@AccessType(value = "property")
	@Column(name = "user_id")
	private Long userId;
	
	@AccessType(value = "property")
	@Column(name = "start_date")
	private Timestamp startDate;
	
	@AccessType(value = "property")
	@Column(name = "end_date")
	private Timestamp endDate;
	
	@AccessType(value = "property")
	@Column(name = "paras_one")
	private java.sql.Blob parasOne;
 
	@AccessType(value = "property")
	@Column(name = "jobs_status")
	private Integer jobsStatus = 0;
	
	@AccessType(value = "property")
	@Column(name = "create_date")
	private Timestamp createDate = new Timestamp(System.currentTimeMillis());
	
	/**
	 * @return the createDate
	 */
	public Timestamp getCreateDate() {
		return createDate;
	}

	/**
	 * @param createDate the createDate to set
	 */
	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @return the jobsType
	 */
	public String getJobsType() {
		return jobsType;
	}

	/**
	 * @return the userId
	 */
	public Long getUserId() {
		return userId;
	}

	/**
	 * @return the startDate
	 */
	public Timestamp getStartDate() {
		return startDate;
	}

	/**
	 * @return the endDate
	 */
	public Timestamp getEndDate() {
		return endDate;
	}

	/**
	 * @return the parasOne
	 */
	public java.sql.Blob getParasOne() {
		return parasOne;
	}

	/**
	 * @return the jobsStatus
	 */
	public Integer getJobsStatus() {
		return jobsStatus;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @param jobsType the jobsType to set
	 */
	public void setJobsType(String jobsType) {
		this.jobsType = jobsType;
	}

	/**
	 * @param userId the userId to set
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}

	/**
	 * @param startDate the startDate to set
	 */
	public void setStartDate(Timestamp startDate) {
		this.startDate = startDate;
	}

	/**
	 * @param endDate the endDate to set
	 */
	public void setEndDate(Timestamp endDate) {
		this.endDate = endDate;
	}

	/**
	 * @param parasOne the parasOne to set
	 */
	public void setParasOne(java.sql.Blob parasOne) {
		this.parasOne = parasOne;
	}

	/**
	 * @param jobsStatus the jobsStatus to set
	 */
	public void setJobsStatus(Integer jobsStatus) {
		this.jobsStatus = jobsStatus;
	}
	
}
